#include <bits/stdc++.h>
using namespace std;
const int N=1e4+5; 
int u[N],v[N],w[N],a[15][N];

int main()
{
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	int n,m,k;
	cin >>n>>m>>k;
	
	for (int i=1;i<=m;i++) cin >>u[i]>>v[i]>>w[i];
	for (int i=1;i<=k;i++)
	{
		for (int j=1;j<=n;j++) cin >>a[i][j];
	}
	cout <<0;
	return 0;
 } 
